package com.ylr.blog.framework.controller.web;

import java.util.Map;

import com.ylr.base.common.tool.Result;
import com.ylr.blog.framework.service.BlogCommentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.*;

import com.ylr.blog.framework.entity.BlogCommentEntity;

import javax.annotation.Resource;



/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-18 21:50:33
 * className: BlogCommentWebController
 * version: 1.0
 * description:
 */
@RestController
@RequestMapping("/web/blog-comment")
public class BlogCommentWebController {

    private static final Logger log = LoggerFactory.getLogger(BlogCommentWebController.class);

    @Resource(name = "blogCommentService")
    private BlogCommentService blogCommentService;

    /**
     * 保存
     */
    @PostMapping("/save")
    public Result<Object> saveYbBlogComment(@RequestBody BlogCommentEntity ybBlogComment) {
//        blogCommentService.save(ybBlogComment);

        return Result.success();
    }

    /**
     * 列表
     */
    @GetMapping("/page/list")
    public Result<Object> pageYbBlogCommentList(@RequestParam Map<String, Object> params) {
//        PageUtils page = blogCommentService.queryPage(params);

        return Result.success();
    }


    /**
     * 信息
     */
    @GetMapping("/get")
    public Result<Object> getYbBlogComment(@RequestParam("id") Long id) {
//		BlogCommentEntity ybBlogComment = blogCommentService.getById(id);

        return Result.success();
    }

    /**
     * 修改
     */
    @PostMapping("/update")
    public Result<Object> updateYbBlogComment(@RequestBody BlogCommentEntity ybBlogComment) {
//		blogCommentService.updateById(ybBlogComment);

        return Result.success();
    }

    /**
     * 删除
     */
    @DeleteMapping("/delete")
    public Result<Object> deleteYbBlogComment(@RequestBody Long[] ids) {
//		blogCommentService.removeByIds(Arrays.asList(ids));

        return Result.success();
    }

}
